//
//  MapAnnotation.m
//  BonBon
//
//  Created by Infindo Eric on 10-1-6.
//  Copyright 2010 苏州. All rights reserved.
//

#import "MapAnnotation.h"


@implementation MapAnnotation
@synthesize coordinate, name,tag;
@synthesize subName;
- (id) initWithCoords:(CLLocationCoordinate2D) coords name:(NSString*) inputName {
	
	self = [super init];
	if (self != nil) {
		coordinate = coords;
		self.name = inputName;
	}
	return self;
	
}
- (NSString *)title
{
    
    return self.subName;
}

- (void)dealloc {
    [subName release];
	[name release];
	[super dealloc];
}
@end
